import {request} from '@/libs/js/request.js'

export function getRestaurants(data, option = {method: 'GET'}) {
  return request('/api/getRestaurants', data, option);
}

export function getWXConfig(data, option = { method: 'GET' }) {
	return request('/api/getWXConfig', data, option);
}

export function toggleFavorite(data, option = { method: 'POST' }) {
  return request('/api/toggleFavorite', data, option);
}